package com.paishen.peiniwan;

/**
 * Created by Administrator on 2015/12/1.
 */
public class BusEvent {

    public static final byte TYPE_MAIN_THREAD = 1;
    public static final byte TYPE_BACKGROUND = 2;

    // 环信数据预加载
    public static final int ACTION_EMCHAT_PRELOAD = 20;
    // 缓存http内容
    public static final int ACTION_HTTP_CACHE = 21;

    // 新app 下载进度
    public static final int ACTION_UPGRADE_DOWNLOAD_PROGRESS = 30;
    // 新app 下载完成
    public static final int ACTION_UPGRADE_DOWNLOAD_FINISH = 31;

    // 保存至手机相册
    // public static final int ACTION_PICTURE_SAVE_TO_ALBUM = 61;
    // 从手机中查询出图片
    public static final int ACTION_PICTURE_QUERY_OUT = 62;
    // 更新user信息
    public static final int ACTION_DB_UPDATE_USER = 99;

    // 从手机中查询出图片 UCrop 裁剪
    // 清除缓存
    public static final int ACTION_SETTINGS_CLEAR_CACHE = 1001;

    // 登录自动输入账号密码
    public static final int ACTION_LOGIN_AUTO_INPUT = 1100;

    // main square 用户信息想约刷新
    // public static final int ACTION_REFRESH_MAIN_SQUARE_USER_INFO_CONCERN = 1401;

    // main profile 去审核界面
    public static final int ACTION_TO_MAIN_PROFILE_AUTH = 2001;
    // date choose refresh
    public static final int ACTION_REFRESH_DATE_CHOOSE = 3012;
    // date info pay success
    public static final int ACTION_REFRESH_DATE_INFO_STATUS_PAY_SUCCESS = 3111;
    // date info be cancelled
    public static final int ACTION_REFRESH_DATE_INFO_STATUS_BE_CANCELLED = 3112;
    // date info be selected 被选中
    public static final int ACTION_REFRESH_DATE_INFO_STATUS_BE_SELECTED = 3113;
    // dae info be complete 对方确认完成
    public static final int ACTION_REFRESH_DATE_INFO_STATUS_BE_COMPLETE = 3114;

    // date profile info 刷新
    public static final int ACTION_REFRESH_MAIN_PROFILE = 4012;
    // profile 个人相册照片预览
    public static final int ACTION_PROFILE_ALBUM_EDIT_PHOTO_SCAN = 4022;
    // main profile album 我的相册预览照片刷新
    public static final int ACTION_REFRESH_MAIN_PROFILE_ALBUM = 4423;

    // main profile valid 我的认证 [提交审核]
    public static final int ACTION_MAIN_PROFILE_AUTH_SUBMIT = 4450;
    // main profile event 评论完成
//    public static final int ACTION_MAIN_PROFILE_DATE_COMMENT_FINISH = 4650;
    // main profile event 同意取消约会
//    public static final int ACTION_MAIN_PROFILE_DATE_CONFIRM_CANCEL = 4666;
    // main profile date 刷新约会
    public static final int ACTION_REFRESH_MAIN_PROFILE_DATE = 4668;
    // main profile auth 刷新认证状态
    public static final int ACTION_REFRESH_MAIN_PROFILE_AUTH = 4669;
    // main profile coupon 刷新优惠券
    // public static final int ACTION_MAIN_PROFILE_COUPON_REFRESH = 4670;

    // main profile message 刷新消息内容  App setUserProfileProvider
    public static final int ACTION_REFRESH_MAIN_MESSAGE_RESET_NICK = 4900;
    // main profile message
    public static final int ACTION_REFRESH_MAIN_MESSAGE_NEW_MESSAGE = 4901;

    //  main profile message
    public static final int ACTION_REFRESH_MAIN_MESSAGE_CLEAR_READ = 4902;



//     main date 新的约来了
    public static final int ACTION_REFRESH_MAIN_DATE_NEW_DATE = 5011;
    // main date 没有查询到任何约会
    public static final int ACTION_REFRESH_MAIN_DATE_EMPTY = 5021;

    // 新的礼物消息
    public static final int ACTION_REFRESH_EASE_NEW_GIFT = 6001;
    // 充值更新余额
    public static final int ACTION_REFRESH_BALANCE_BY_CHARGE = 6311;


    public int action;
    public byte type;
    public Object content;

    public BusEvent(int action, Object content) {
        this(TYPE_MAIN_THREAD, action, content);
    }

    public BusEvent(int action) {
        this(TYPE_MAIN_THREAD, action);
    }

    public BusEvent(byte type, int action) {
        this.type = type;
        this.action = action;
    }

    public BusEvent(byte type, int action, Object content) {
        this.type = type;
        this.action = action;
        this.content = content;
    }
}
